<?php exit?>
<h3>发表评论</h3>
<div id="show_more">欢迎回来, <span id="old_comment_name"></span> <a href="javascript:;" id="comment_more_bind">更改&raquo;</a></div>
<div id="comment_form">
<div id="comment_more">
	<input type="text" id="comment_name" class="input" autocomplete="off" x-webkit-speech/>&nbsp;(您的昵称)<div class="blank"></div>
	<input type="email" id="comment_email"  class="input" autocomplete="off" x-webkit-speech/>&nbsp;(邮箱地址)<div class="blank"></div>
	<input type="url" id="comment_site" class="input" autocomplete="off" x-webkit-speech/>&nbsp;(个人主页)<div class="blank"></div>
</div>
<textarea id="comment_content"  class="input" onfocus="if($('#comment_insert').css('display')=='none'){
	$('#comment_content').val('');
	$('#comment_content').animate({height:'+50px'});
	$('#comment_insert').fadeIn();
	var cookie_name=$.cookie('comment_name');
	if(!cookie_name){
		$('#comment_more').slideDown();
	}else{
		$('#old_comment_name').html(cookie_name);
		$('#show_more').show();
		$('#comment_more_bind').click(function(){
			$('#comment_more').slideToggle();
		});
	}
}">我要评论。。</textarea>
<div class="blank" style="text-align:right">
<input type="button" value="提交评论" id="comment_insert"/>
</div>
</div>
<!--{if $comment}-->
<h3>网友评论(<!--{$count}-->)</h3>
<div id="comment_list">
	<!--{foreach from=$comment item=comment}-->
		<div class="item">
		<b><!--{if $comment.site}--><a href="<!--{$comment.site}-->" target="_blank"><!--{$comment.name}--></a><!--{else}--><!--{$comment.name}--><!--{/if}--></b>：<!--{$comment.content}-->
		<span class="ip">来自<!--{$comment.ip_address}--></span>
		<span class="time"><!--{$comment.time}--></span>
		<!--{if $comment.reply}-->
			<div class="reply">管理员：<!--{$comment.reply}--></div>
		<!--{/if}-->
		</div>
	<!--{/foreach}-->
	<!--{if $pager.page_count>1}-->
			<div class="pager">
			<ul>
			<!--{if $pager.begin}-->
				<li><a href="javascript:get_comment('<!--{$path}-->','content',<!--{$article_id}-->,<!--{$pager.begin}-->)">&laquo;</a></li>
			<!--{else}-->
				<li class="disabled"><a>&laquo;</a></li>
			<!--{/if}-->

			<!--{foreach from=$pager.no key=key item=href}-->
			<!--{if $pager.current==$key}-->
				<li class="active"><a><!--{$key}--></a></li>
			<!--{else}-->
				<li><a href="javascript:get_comment('<!--{$path}-->','content',<!--{$article_id}-->,<!--{$href}-->)"><!--{$key}--></a></li>
			<!--{/if}-->
			<!--{/foreach}-->

			<!--{if $pager.end}-->
				<li><a href="javascript:get_comment('<!--{$path}-->','content',<!--{$article_id}-->,<!--{$pager.end}-->)">&raquo;</a></li>
			<!--{else}-->
				<li class="disabled"><a>&raquo;</a></li>
			<!--{/if}-->
			</ul>
			</div>
	<!--{/if}-->
</div>
<!--{/if}-->
